const {getMovieDetailHttp} =  require("../../utils/top-htp")
Page({
    data: {
        pic:"",
        title:"",
        slogo:""
    },
    onLoad: function (options) {
        console.log(options)
        var {id}=options;
        getMovieDetailHttp(id).then(res=>{
            console.log(res.data.res)
            var {pic,title,slogo} = res.data.res[0]
            this.setData({
                pic,title,slogo
            })
        })
    }
})